import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import Admin from 'src/entities/admin/admin.entity';
import { Repository } from 'typeorm';

@Injectable()
export class AdminService {
  constructor(@InjectRepository(Admin) private adminRepository: Repository<Admin>) {}

  async findOne(uid: string) {
    return this.adminRepository.findOne({ where: { id: uid } });
  }
}
